<script setup lang="ts">

</script>

<template>
  <el-card header="命名路由">
    <pre v-highlight><code class="javascript">{
    path: 'order/:id',
    name: '订单信息',
    component: OrderInfo,
},</code></pre>
    路转：
    <pre v-highlight><code class="javascript">router.push({ name: '订单信息', params: { id: '100' } })</code></pre>
  </el-card>
</template>

<style scoped>

</style>